package com.tssf.car_manage.mapper;

import com.tssf.car_manage.entity.Admin;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
@Mapper
public interface AdminMapper {

    List<Admin> lists();

    List<Admin> getById(int id);

    int save(Admin admin);

    int update(Admin admin);

    int delete(int id);

    // 新增搜索方法
    List<Admin> searchAdmins(String key);

    List<Admin> getAdminByUsername(String username);
}
